package com.dao;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.entity.model.AddressBookModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AddressBookDao extends BaseMapper<AddressBookModel> {

    @Select("select ab.detail from yonghu as yh JOIN address_book as ab on yh.id = ab.yonghu_id and ab.is_delete=0;")
    List<String> selectByYongHuId(Long id);
}
